cimport c_cxcore 
cimport c_highgui

cdef class CvArr:   
    cdef c_cxcore.CvArr* dummyptr
    cdef c_cxcore.CvArr* handle(CvArr)
    
cdef class IplImage(CvArr):
    cdef c_cxcore.IplImage* thisptr
    cdef int needs_free
    cdef c_cxcore.CvArr* handle(IplImage)    
    
cdef class CvMat(CvArr):
    cdef c_cxcore.CvMat* thisptr
    cdef int needs_free
    cdef c_cxcore.CvArr* handle(CvMat)
    
cdef class CvMatND(CvArr):
    cdef c_cxcore.CvMatND* thisptr
    cdef int needs_free
    cdef c_cxcore.CvArr* handle(CvMatND)
        
cdef class CvPyramid:
    cdef c_cxcore.CvMat** thisptr
    cdef int needs_free
    cdef int extra_layers
    
cdef class CvHistogram:
    cdef c_cxcore.CvHistogram* thisptr
    cdef int needs_free
        
    
cdef class CvCapture:    
    cdef c_highgui.CvCapture* thisptr